package com.song.list.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 请求路径白名单
 * </p>
 *
 * @author song
 * @since 2023-10-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("white_list")
@ApiModel(value="WhiteList对象", description="请求路径白名单")
public class WhiteList extends Model<WhiteList> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "白名单id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "路由类型")
    @TableField("route_type")
    private String routeType;

    @ApiModelProperty(value = "请求路径")
    @TableField("path")
    private String path;

    @ApiModelProperty(value = "说明")
    @TableField("comment")
    private String comment;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
